import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入姓名:");
        String name=sc.nextLine();
        System.out.println("请输入年龄:");
        int age=sc.nextInt();
        System.out.println("请输入你的工资:");
        float salary=sc.nextFloat();
        System.out.println("你的信息如下: ");
        System.out.println("姓名:"+name+"\n"+"年龄"+age+"\n"+"工资"+salary+"\n");

    }
    public static void main10(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        System.out.println(n);

        float f=scanner.nextFloat();
        System.out.println(f);

    }
    public static void main09(String[] args) {
        int sum=0;
        for (int j = 1; j <=5 ; j++) {
            int ret=1;
            for (int i =1; i <=j ; i++) {
                ret*=i;
            }
            sum+=ret;
        }
        System.out.println(sum);
    }
    public static void main08(String[] args) {
        for (int i = 0; i <10 ; i++) {
            System.out.print(i+" ");
            //System.out.println(i);
        }
    }
    public static void main07(String[] args) {
        int i=1;
        while (i<=100){
            if (i%15 !=0){
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main06(String[] args) {
        int i=1;
        while (i<=7){
            if (i==3){
                i++;
                continue;
            }
            System.out.print(i+" ");
            i++;
        }
    }
    public static void main05(String[] args) {
        int j=1;
        int sum=0;
        while (j<=5){
            int i=1;
            int ret=1;
            while (i<=j){
                ret*=i;
                i++;
            }
            j++;
            sum+=ret;
        }
        System.out.println(sum);
    }
    public static void main04(String[] args) {
        int i=1;
        int ret=1;
        while (i<=5){
            ret*=i;
            i++;
        }
        System.out.println(ret);
    }
    public static void main03(String[] args) {
        int i=1;
        while (i<=10){
            System.out.print(i+" ");
            i++;
        }
    }
    public static void main02(String[] args) {
        int a=1;
        switch (a){
            case 1:
                System.out.println(1);
                //break;
            case 2:
                System.out.println(2);
                break;
            default:
                System.out.println("haha");
                break;
        }
    }
    public static void main01(String[] args) {
        int num=10;
        if (num%2==0){
            System.out.println("是偶数");
        }else{
            System.out.println("是奇数");
        }
    }
}
